import request from '@/utils/request'

// 新增岗位
export const createJob = (data) => request({
  url: '/admin/job',
  method: 'post',
  data
})

// 删除岗位
export const deleteJob = (data) => request({
  url: '/admin/job',
  method: 'delete',
  data
})

// 修改岗位
export const updateJob = (data) => request({
  url: '/admin/job',
  method: 'put',
  data
})

// 单个查询岗位
export const queryJob = (id) => request({
  url: '/admin/job',
  method: 'get',
  params: { id }
})

// 分页查询岗位
export const pageQuery = (data) => request({
  url: '/admin/job/page',
  method: 'post',
  data
})
